package com.lzcu.maoyan.maoyanweb.control;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * 富文本标签
 * @author WangLiang
 * @date `2024/4/22`
 */
@Controller
public class RichTextController {
    @GetMapping("richText")
    @ResponseBody
    public String RichText(){
        Map<String, Object> result = new HashMap<>();
        result.put("text1", "总票房前20");
        return JSONObject.toJSONString(result);
    }
}
